import app from './app'; // 封装
import {APP_PORT} from './app/app.config';
// 超强的模块化
import { connection } from './app/database/mysql';

connection.connect(error => {
    if(error) {
        console.log('连接数据库失败',error.message);
        return ;
    }
    console.log('成功连接数据库');
})

app.listen(APP_PORT,() => {
    console.log('服务已启动');
})
